package com.woniuxy.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 社区评论实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ComComment {
    private Integer commentId;
    private String content;
    private Integer userId;
    private Integer comId;
    private Integer parentId;
    private Integer likesCount;
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;

    private User user; // 用户信息
    private List<ComComment> replies; // 子评论
}
